import config from "@/config"
import http from "@/utils/request"

export default {
	//项目报销
	item:{
		list: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectDispatch/lists`,
			name: "获取项目报销列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectDispatch/add`,
			name: "添加项目报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectDispatch/edit`,
			name: "修改项目报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectDispatch/delete`,
			name: "删除项目报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectDispatch/changeStatus`,
			name: "项目报销审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectDispatch/detail`,
			name: "项目报销详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/dispatch.ProjectDispatch/dispatchExport`,
			name: "项目报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
	},
    // 运营报销
    operate:{
		list: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectOperate/lists`,
			name: "获取运营报销列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        add: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectOperate/add`,
			name: "添加运营报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectOperate/edit`,
			name: "修改运营报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectOperate/delete`,
			name: "删除运营报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        check: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectOperate/changeStatus`,
			name: "运营报销审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/dispatch.ProjectOperate/detail`,
			name: "运营报销详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        export: {
            url: `${config.API_URL}/adminapi/dispatch.ProjectOperate/operateExport`,
			name: "运营报销",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
        },
	},
}
